/**
AbstractNoSqlEntity.java
jackysoft-basic-core
2012-8-6下午5:59:48
@author 屈甲康
@QQ285799123
mailto:qujiakang@126.com
**/
package org.jackysoft.entity.nosql;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import org.jackysoft.annotations.BID;
import org.jackysoft.entity.AbstractCustomeEntity;


@MappedSuperclass
public abstract class AbstractNoSqlEntity extends AbstractCustomeEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1075283436101166815L;
    private String id;

    
    
    @BID@Transient    
    public String getId() {
    	return id==null?this.objectId==null?null:this.objectId.toString():id;
	}
    
	public void setId(String id) {
		this.id = id;
	}
    
}
